package com.tc.quartz.support.controller;

import com.alibaba.fastjson.JSON;

import com.tc.quartz.frame.base.BaseController;
import com.tc.quartz.support.bean.JobManagerBean;
import org.apache.commons.lang3.StringUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.client.RestTemplate;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * 任务管理
 *
 * @author yongjin.ye
 */
@RequestMapping(value = "/")
@Controller
public class MainController extends BaseController {

	private static final Logger LOG = LoggerFactory.getLogger(MainController.class);



	/*@Autowired
	private RestTemplate restTemplate;*/

	/**
	 * 进入list页面
	 */
	@RequestMapping(value = "/_health_check", method = RequestMethod.GET, produces = "text/html;charset=UTF-8")
	@ResponseBody
	public String health_check() {
		log.info("request health check.");
		return "ok";
	}

}